package daoyu;


import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.core.env.ConfigurableEnvironment;

@SpringBootApplication
@Slf4j
public class Application {

    public static void main(String[] args) {

        ConfigurableEnvironment env = SpringApplication.run(Application.class, args).getEnvironment();

        log.info("\n----------------------------------------------------------\n" +
                        "Application: '{}' is running Success! \n" +
                        "Local URL: http://localhost:{}\n" +
                        "Document:http://localhost:{}/doc.html\n" +
                        "----------------------------------------------------------",
                env.getProperty("spring.application.name"),
                env.getProperty("server.port"),
                env.getProperty("server.port"));
    }

}
